# -*- coding: utf-8 -*-
from odoo import models, fields, api, _


class PaulSaleOrderExtend(models.Model):
    _name = 'sale.order'
    _inherit = ["sale.order", "stock.view.quant.mixin"]

    @api.multi
    def action_view_quants(self):
        self.ensure_one()
        products = self.order_line.mapped("product_id")
        return self.action_view_quant_by_product_ids(products.ids)
